package top.yxqz.number3.service.imp;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import top.yxqz.number3.entity.Emp;
import top.yxqz.number3.mapper.EmpMapper;
import top.yxqz.number3.service.EmpService;

/**
 * @author: 余小小
 * @description：
 */
@Service
public class EmpServiceImp implements EmpService {
    @Autowired
    private EmpMapper mapper;

    @Override
    public Emp getEmpById(Integer id) {
        return mapper.selectById(id);
    }

    @Override
    public void emp(Emp emp) {
        mapper.insert(emp);
    }
}
